#-*- coding:utf-8 -*-
import os
import sys
#reload(sys)
#sys.setdefaultencoding('utf-8')
import json
import subprocess



data = {'path':r'\\192.168.1.248\cgteamwork4','fps':24,'resolution':'2048x1152','entity_name':'FNDH','full_name':'愤怒的海'}

exec_script = r'D:\pythonOUT\TestAll\testExecfile\exec_script.py'

proc = subprocess.Popen(['python3',exec_script],stdin=subprocess.PIPE,stdout=subprocess.PIPE)
serialized = json.dumps(data)
out,err = proc.communicate(serialized.encode())
print(out.rstrip())